package org.elte.lipika.client.managed.ui;

import com.google.gwt.requestfactory.ui.client.ProxyRenderer;
import java.util.Set;
import org.elte.lipika.client.managed.request.ExampleProxy;
import org.elte.lipika.client.managed.request.OccurenceProxy;
import org.elte.lipika.client.managed.request.OriginalProxy;
import org.elte.lipika.client.managed.request.TerminusProxy;

public class TerminusProxyRenderer extends ProxyRenderer<TerminusProxy> {

    private static org.elte.lipika.client.managed.ui.TerminusProxyRenderer INSTANCE;

    protected TerminusProxyRenderer() {
        super(new String[] { "circumscription" });
    }

    public static org.elte.lipika.client.managed.ui.TerminusProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new TerminusProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(TerminusProxy object) {
        if (object == null) {
            return "";
        }
        return object.getCircumscription() + " (" + object.getId() + ")";
    }
}
